home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import java.awt.AWTError;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dimension;
- import java.awt.LayoutManager;
- import javax.accessibility.Accessible;
- import javax.accessibility.AccessibleContext;
-
- public class Box extends Container implements Accessible {
- protected AccessibleContext accessibleContext = null;
-
- public Box(int var1) {
- super.setLayout(new BoxLayout(this, var1));
- }
-
- public static Component createGlue() {
- return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 32767));
- }
-
- public static Box createHorizontalBox() {
- return new Box(0);
- }
-
- public static Component createHorizontalGlue() {
- return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 0));
- }
-
- public static Component createHorizontalStrut(int var0) {
- return new Filler(new Dimension(var0, 0), new Dimension(var0, 0), new Dimension(var0, 32767));
- }
-
- public static Component createRigidArea(Dimension var0) {
- return new Filler(var0, var0, var0);
- }
-
- public static Box createVerticalBox() {
- return new Box(1);
- }
-
- public static Component createVerticalGlue() {
- return new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(0, 32767));
- }
-
- public static Component createVerticalStrut(int var0) {
- return new Filler(new Dimension(0, var0), new Dimension(0, var0), new Dimension(32767, var0));
- }
-
- public AccessibleContext getAccessibleContext() {
- if (this.accessibleContext == null) {
- this.accessibleContext = new AccessibleBox(this);
- }
-
- return this.accessibleContext;
- }
-
- public void setLayout(LayoutManager var1) {
- throw new AWTError("Illegal request");
- }
- }
-